package com.slz3.business.module.memberManagement.memMember.service;

import com.slz3.business.module.memberManagement.memMember.domain.MemMember;
import org.springframework.data.domain.Page;
import org.springframework.util.MultiValueMap;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

/**
 * 非事务型 service
 */
public interface MemMemberService {

    MemMember save(MemMember memMember);

    Page<MemMember> page(MultiValueMap<String,String> queryParams);

    MemMember modify(MemMember memMember);

    /**
     *
     * 通过用户ID查询用户
     * @param userId
     * @return
     */
    Optional<MemMember> findById(String userId);

    Optional<MemMember> single(UUID uuid);

    List<MemMember> findAllByUuids(Iterable<UUID> uuids);

    List<MemMember> delete(List<MemMember> memMemberList);
}
